$(document).ready(function () {
	if ($("#arweb").attr("href") != "http://juole.blogspot.com/") {
		window.location.href = "http://juole.blogspot.com/"
	}
	if ($("#arweb").html() != "juole") {
		window.location.href = "http://juole.blogspot.com/"
	}
	if ($(".cpright").css('display') == "none") {
		window.location.href = "http://juole.blogspot.com/"
	}
	if ($("#arweb").css('display') == "none") {
		window.location.href = "http://juole.blogspot.com/"
	}
});
function removeHtmlTag(a, b) {
	if (a.indexOf("<") != -1) {
		var s = a.split("<");
		for (var i = 0; i < s.length; i++) {
			if (s[i].indexOf(">") != -1) {
				s[i] = s[i].substring(s[i].indexOf(">") + 1, s[i].length)
			}
		}
		a = s.join("")
	}
	b = (b < a.length - 1) ? b: a.length - 2;
	while (a.charAt(b - 1) != ' ' && a.indexOf(' ', b) != -1) b++;
	a = a.substring(0, b - 1);
	return a + '[...]'
}
function createSummaryAndThumb(a) {
	var b = document.getElementById(a);
	var c = "";
	var d = b.getElementsByTagName("img");
	var e = summary_noimg;
	if (d.length >= 1) {
		c = '<span style="float:left; height: 180px;  margin-right: 15px; margin-top:4px; "><img src="' + d[0].src + '" width="' + img_thumb_width + 'px" height="' + img_thumb_height + 'px"/></span>';
		e = summary_img
	}
	var f = c + '<div>' + removeHtmlTag(b.innerHTML, e) + '</div>';
	b.innerHTML = f
}